package com.xiaotao.controller;

import com.xiaotao.service.AddressService;
import com.xiaotao.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("addr")
public class AddressController {
    @Autowired
    private AddressService addressService;

    @GetMapping
    public Result getAddr() throws Exception {
        return addressService.getAddr();
    }
}
